package com.xky.example_student.entity;



import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDateTime;


/**
* 
* @TableName score
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(name = "score")
public class Score{

    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 学生id
     */


    private Integer stuId;
    /**
     * 学生姓名
     */

    private String stuName;
    /**
     * 学期
     */

    private String team;
    /**
     * 课程序号
     */

    private String courseSerialNumber;
    /**
     * 课程名称
     */

    private String courseName;
    /**
     * 分数
     */

    private Integer score;
    /**
     * 学分
     */

    private Float credit;
    /**
     * 学分绩
     */
    @TableField("credit_score")
    private Float creditScore;
    /**
     * 成绩类别
     */

    private String gradeCategory;

    /**
     * 创建时间
     */
    private LocalDateTime createTime = LocalDateTime.now();
    /**
     * 更新时间
     */
    private LocalDateTime updateTime = LocalDateTime.now();

    @Override
    public String toString() {
        return "分数{" +
                ", 学号=" + stuId +
                ", 姓名='" + stuName + '\'' +
                ", 学期='" + team + '\'' +
                ", 课程编号='" + courseSerialNumber + '\'' +
                ", 课程名称='" + courseName + '\'' +
                ", 分数=" + score +
                ", 学分=" + credit +
                ", 学分绩=" + creditScore +
                ", 成绩类别='" + gradeCategory+
                '}';
    }
}
